package com.gzx.qc.modular.asr.controller;

import com.gzx.qc.modular.asr.service.GzxAsrService;
import com.gzx.qc.modular.asr.vo.GzxAsrTextVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.pojo.CommonResult;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/7/30 11:46
 */
@RestController
@RequestMapping("/qc/asr")
@RequiredArgsConstructor
public class GzxAsrController {

    private final GzxAsrService asrService;

    /**
     * 查询ASR文字
     *
     * @param callId
     * @return
     */
    @GetMapping("/getAstText/{callId}")
    public CommonResult<List<GzxAsrTextVo>> getAstText(@PathVariable String callId) {
        return CommonResult.data(asrService.getAstText(callId));
    }
}
